<script setup lang="ts">
import { getRepairList } from '@/api/repair';
import type { Repair } from '@/api/repair/type';
import { onMounted, ref } from 'vue';


const repairList = ref([] as Repair[]);

onMounted(() => {
    getRepairList().then((res) => {
        repairList.value = res.data;
    })
})

</script>

<template>
    <div class="container">
        <el-table :data="repairList" style="width: 100%" stripe border>
            <el-table-column prop="id" label="ID" />
            <el-table-column prop="content" label="主要内容" />
            <el-table-column prop="status" label="状态" />
            <el-table-column prop="createTime" label="创建时间" />
            <el-table-column prop="updateTime" label="更新时间" />
        </el-table>
    </div>
</template>

<style lang="scss" scoped>

</style>